package com.ect.gwt.client;


import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.objetdirect.gwt.umlapi.client.Drawer;
import com.objetdirect.gwt.umlapi.client.umlCanvas.UMLCanvas;
import com.objetdirect.gwt.umlapi.client.umlcomponents.DiagramType;
import com.objetdirect.gwt.umlapi.client.umlcomponents.UMLClass;



/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Gwt_uml implements EntryPoint {
	public void onModuleLoad()
	  {
	     UMLCanvas umlCanvas = UMLCanvas.createUmlCanvas( DiagramType.CLASS);
	     
	     final Drawer d = new Drawer(umlCanvas, DiagramType.CLASS);
	     
	     RootLayoutPanel.get().add(d);
	    
	     DeferredCommand.addCommand(new Command() {
	                        public void execute() {
	                                d.onResize();
	                        }
	        });
	     
	  }
	 
}
